package com.foxchen.ddns.config;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

import java.util.List;
@Configuration
@Getter
@Setter
@ToString
@ConfigurationProperties(prefix = "ddns-config")
public class DDNSConfig {
    private List<Detail> allDomainConfig;
    private List<String> v4;
    private List<String> v6;
    private String defaultIpType;

    @Getter
    @Setter
    @ToString
    public static class Detail {
        private String domain;
        private String domainFrom;
        private List<String> analysis;
        private String type;
    }
}
